package com.itheima.mytext04;

import com.itheima.mytext01.MyThread;

public class Demo1 {
    //学习关于线程的常见方法
    public static void main(String[] args) {
        //创建线程

        MyThread t1=new com.itheima.mytext01.MyThread();
        MyThread t2=new MyThread();

        t1.start();
        t2.start();
       // System.out.println(Thread.currentThread().getName());

        Thread t3 = Thread.currentThread();
        System.out.println(t3.getName());
    }
}
